<template>
    <input type="file" @change="uploadFile"/>
    <ImgTools ref="imgToolsRef"></ImgTools>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import ImgTools from './components/imgTools/index.vue'

const imgToolsRef = ref()
const uploadFile = (e:any) => {
    const file = e.target?.files[0]
    imgToolsRef.value.createImgTools(file)
}
</script>

<style scoped>

</style>
